<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body">
        <form class="layui-form" action="<?=url('worker/add');?>">
            <div class="layui-form-item">
              <label class="layui-form-label">选择公司</label>
              <div class="layui-input-block">
                <?php
                 $list = $this->db->query('select * from company where status = 0');
                 foreach($list as $k=>$v): ?>
                 <a href="/ordergoods/cworker?company_id=<?=$v['id']?>" class="layui-btn layui-btn-primary"> <?=$v['title']?></a>
                <?php endforeach; ?>
              </div>
            </div>
        </form>
      </div>
    </div>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();
});

</script>
